<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 50px;
            height: 50px;
            background-color: pink;
            border-radius: 10px;
            line-height: 50px;
            text-align: center;
        }
        audio{
            opacity: 0;
        }
    </style>

</head>
<body>
    <div>点击</div>
    <audio class="su" src="./video/精彩鑫 - 就让秋风带走我的思念.mp3"  controls loop></audio>

    
    <script>
        var arr = document.querySelector("div");
        arr.onclick = function(){
            alert("music即将播放!!!" +  "\n" +  "准备好啦--小可爱!!");
            let audio =document.querySelector(".su");
            audio.play();
        }
    </script>


    
</body>
</html>